<?php
//常用的curl内容

function curlUrl($url,$time=2) {
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_HEADER, false);
	curl_setopt($ch, CURLOPT_TIMEOUT, $time);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	$rs = curl_exec($ch);
	return True;
}